{% extends "bouting/base.html" %}

{% block content %}
    <h2>Make a person</h2>
    {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
    <form action="/bouting/createPerson_Response/" method="post">
        {% csrf_token %}
        <h3>Account Info</h3>
        First Name*:<input type="text" name="firstName" id="firstName"></input><br>
        Last Name*:<input type="text" name="lastName" id="lastName"></input><br>
        Email:<input type="text" name="email" id="email"></input><br>
        Gender*:
        <select name="gender" id="gender">
            <option value="Male">Male</option>
            <option value="Female">Female</option>
        </select>
        <br>
        Birthday:
        <select name="month" id="month">
            {% for month in monthChoices%}
                <option value="{{month}}">{{month}}</option>
            {% endfor %}
        </select>/
        <select name="day" id="day">
            {% for day in dayChoices%}
                <option value="{{day}}">{{day}}</option>
            {% endfor %}
        </select>/
        <select name="year" id="year">
            {% for year in yearChoices%}
                <option value="{{year}}">{{year}}</option>
            {% endfor %}
        </select>
        <br>
        <h3>USFA Info</h3>
        Primary Club*:
        <select name="primaryClub" id="primaryClub">
            <option></option>
            {% for club in clubChoices %}
                <option>{{club}}</option>
            {% endfor %}
        </select>
        <br>
        Secondary Club:
        <select name="secondaryClub" id="secondaryClub">
            <option></option>
            {% for club in clubChoices %}
                <option>{{club}}</option>
            {% endfor %}
        </select>
        <br>
        Division:
        <select name="division" id="division">
            <option></option>
            {% for division in divisionChoices %}
                <option>{{division}}</option>
            {% endfor %}
        </select>
        <br>
        Foil*:
        <select name="foilRating" id="foilRating">
            {% for rating in weaponRatingChoices %}
                <option>{{rating}}</option>
            {% endfor %}
        </select>
        Epee*:
        <select name="epeeRating" id="epeeRating">
            {% for rating in weaponRatingChoices %}
                <option>{{rating}}</option>
            {% endfor %}
        </select>
        Saber*:
        <select name="saberRating" id="saberRating">
            {% for rating in weaponRatingChoices %}
                <option>{{rating}}</option>
            {% endfor %}
        </select>
        <br>
        USFA #:<input type="text" name="usfaNum" id="usfaNum"></input>
        <br>
        <input type="submit" value="Submit" />
    </form>
{% endblock %}
